package cn.ryh.openfeign.consumer.controller;

import cn.ryh.openfeign.service.PaymentFeignService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @ClassName PaymentController
 * @Description TODO
 * @Author RaoYH
 * @CreateDate 2020/11/20
 * @UpdateUser RaoYH
 * @UpdateDate 2020/11/20
 * @UpdateRemark TODO
 * @Version 1.0
 */
@RestController
@RequestMapping(value = "/consumer")
public class ConsumerController {
    @Resource
    private PaymentFeignService paymentFeignService;

    @GetMapping(value = "/getServer")
    public String getServer() {
        return paymentFeignService.getServer();
    }

    @GetMapping(value = "/getServerTimeOut")
    public String getServerTimeOut() {
        return paymentFeignService.getServerTimeOut();
    }
}
